﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = Shield
		Group                          = ShieldHardeners
		Module                         = guardian shield hardener
		CpuUsage                       = 55.00 TF
		ReactorUsage                   = 23.00 RP
		Type                           = Passive
		Slot                           = Head
		TechnologicalLevel             = T4
		Mass                           = 310.00 kg
		PackedVolume                   = 0.25 U
		Volume                         = 0.50 U
		ShieldAbsorption               = 38 %
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Guardian shield hardener module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:56</remarks>
    public sealed class GuardianShieldHardener : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="GuardianShieldHardener"/> class.
        /// </summary>
        public GuardianShieldHardener()
            : base(
            "Guardian shield hardener",
            "",
            ModuleMetaGroupsEnum.Shield,
            ModuleGroupsEnum.ShieldHardeners,
            TechnologyLevelsEnum.Level4,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(ShieldHardenerCpuUsage<double>),55.00),
				new LazyFeature(typeof(ShieldHardenerReactorUsage<double>),23.00),
				new LazyFeature(typeof(ModuleMass<double>),310.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 310.00 ){ IsVisible = false },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.ShieldAbsorptionRatio, 0.38 ){ Unit = UnitsEnum.Percentage,  DisplayName = "Shield absorption" }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Passive; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Head; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}